﻿@model IEnumerable<Warehouse>
@if (Model != null)
{ 
<table class="neat">
    <caption>@Model.Count() search results </caption>
    <thead>
        <tr>
            <th>@Html.DisplayNameFor(x => x.Id)</th>
            <th>@Html.DisplayNameFor(x => x.Code)</th>
            <th>@Html.DisplayNameFor(x => x.Name)</th>
            <th>@Html.DisplayNameFor(x => x.Description)</th>
            <th>@Html.DisplayNameFor(x => x.CreatedDateTime)</th>
            <th>&nbsp;</th>
        </tr>
    </thead>
    <tbody>
@foreach (Warehouse warehouse in Model)
{
        <tr>
            <td>@Html.DisplayFor(model => warehouse.Id)</td>
            <td>@Html.DisplayFor(model => warehouse.Code)</td>
            <td>@Html.DisplayFor(model => warehouse.Name)</td>
            <td>@Html.DisplayFor(model => warehouse.Description)</td>
            <td>@Html.DisplayFor(model => warehouse.CreatedDateTime)</td>
            <td>
                <a href="@Url.Action("Edit", new { id=warehouse.Id })">
                    <img src= "@Url.Content("~/Content/images/famfamfam/silk/application_form_edit.png")" alt="edit" title="edit" /></a>
                <a href="@Url.Action("Delete", new { id=warehouse.Id })">
                    <img src= "@Url.Content("~/Content/images/famfamfam/silk/application_form_delete.png")" alt="delete" title="delete" /></a>
            </td>
        </tr>
}
    </tbody>
</table>
}
